package com.quotes.datamodell;

import java.util.ArrayList;
import java.util.List;

public class SymbolList 
{
	private ArrayList<Symbol> list = new ArrayList<Symbol>();
	
	public SymbolList() {
	}
	
	public void add(Symbol symbol) {
		list.add(symbol);
	}
	
	public List<Symbol> getSymbols() {
		return list;
	}
	
	public Symbol byYahooName(String symbolName) {
		for (Symbol s : list) {
			if (s.getYahooName() == symbolName)
				return s;
		}
		
		return null;
	}
}
